package tp3;

import java.text.DecimalFormat;

abstract class FigureOrdonnable implements Ordonnable<FigureOrdonnable> {
	
	DecimalFormat df = new DecimalFormat("0.000");
	
	FigureOrdonnable (){
		
		super();
	}
			
	abstract double calculerAire();
	
	public String toString (){
		
		return "\n"+this.getClass().getName() + "\tAire :\t"+df.format(this.calculerAire());
		
	}
}
